<%@ include file="/jsps/main.jsp"%>

<%
String audioUrl = (String)portletSession.getAttribute("audioUrl"); 
%>

<%
PortletURL actionUrl = renderResponse.createActionURL();
actionUrl.setParameter(ActionRequest.ACTION_NAME, "saveKaraoke");
String songId =  ParamUtil.getString(request, "songId");
%>

<aui:form action="<%=actionUrl.toString() %>">
	<aui:fieldset>
		<aui:input type="hidden" name="songId" value="<%=songId %>"/>
		<aui:input type="hidden" name="audioUrl" value="<%=audioUrl %>"/>
		<aui:input type="hidden" name="redirectUrl" value="<%=tab1Url.toString() %>"/>
		<br>
		<%-- <table>
			<tr>
				<td valign="middle"><liferay-ui:message key="listen-again"/></td>
				<td valign="middle">
					<audio id="audio-beat" controls="controls" style="margin-left: 20px;">
						<source src="<%=audioUrl %>" type="audio/mpeg">
					</audio>
				</td>
			</tr>
		</table> --%>
		<aui:input name="avatar" style="width:100%"/>
		<aui:input name="description" type="textarea" style="width:100%;height:100px"/>
		<aui:input name="isShow" type="checkbox"/>
		<aui:button type="submit" value="save"/>
	</aui:fieldset>
</aui:form>

